<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<div id="header">
	<h1><a href="/">The Sunshine - online code review tool -</a></h1>
	<ul>
	<c:choose>
		<c:when test="${userContext.login}">
			<li>Welcome ${userContext.user.name}! <a href="/logout.web">Logout</a></li>
		</c:when>
		<c:otherwise>
			<li><a href="/login.web">Login</a> | <a href="/join.web">Join</a></li>
		</c:otherwise>
	</c:choose>
	<c:if test="${userContext.login}"></c:if>
	</ul>
</div>
